package com.example.lending.Model;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity
public class Operation {
    @PrimaryKey(autoGenerate = true)
    int id;
    @ColumnInfo()
    String username;//用户名
    @ColumnInfo()
    String time;//时间
    @ColumnInfo()
    String operation;//行为

    public Operation(String time, String username, String operation) {
        this.time = time;
        this.username = username;
        this.operation = operation;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }
}
